package com.imooc.sell.service.impl;

import com.imooc.sell.dataobject.SellerInfo;
import com.imooc.sell.repository.SellerInfoRepository;
import com.imooc.sell.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * create by song on 2018/3/17
 * To change this template use File | Settings | File Templates.
 */

@Service
public class SellerServiceImpl implements SellerService{


    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findBySellerInfoByOpenid(String openid) {
        return sellerInfoRepository.finfByOpenid ( openid );
    }
}
